import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import 'normalize.css/normalize.css'
import './styles/index.scss'
import './utils/premission' // 权限角色
import './icons'
import * as filters from './filters/index'
import JsonExcel from 'vue-json-excel' // 导出excel
import VueAwesomeSwiper from 'vue-awesome-swiper' // global css
import VueQuillEditor from 'vue-quill-editor' // 富文本
import { directive } from './utils/directive'
// require styles
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
Vue.use(VueQuillEditor)
Vue.use(ElementUI)
Vue.config.productionTip = false
Vue.use(VueAwesomeSwiper)
Vue.component('downloadExcel', JsonExcel)
// 注册全局filter
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})
directive() // 自定义指令
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
